$OpenBSD: patch-v8_src_base_platform_platform-posix_cc,v 1.6 2017/04/19 05:16:47 robert Exp $
--- v8/src/base/platform/platform-posix.cc.orig.port	Thu Mar  9 21:05:30 2017
+++ v8/src/base/platform/platform-posix.cc	Fri Mar 10 07:46:26 2017
@@ -356,6 +356,8 @@ int OS::GetCurrentThreadId() {
   return static_cast<int>(thread_self());
 #elif V8_OS_SOLARIS
   return static_cast<int>(pthread_self());
+#elif V8_OS_OPENBSD
+  return reinterpret_cast<uint64_t>(pthread_self());
 #else
   return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
 #endif
